package com.clarence.dada.modular.system.user.entity.resp;


import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Set;

/**
 * 登录人详细信息
 *
 * @author fengshuonan
 * @since  2021/3/22 21:27
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CurrentUserInfoResp {

    /**
     * 用户主键id
     */
    @Schema(title = "用户主键id", example = "1")
    private Long userId;

    /**
     * 登录人的ws-url
     */
    @Schema(title = "登录人的ws-url", example = "xxx")
    private String wsUrl;

    /**
     * 昵称
     */
    @Schema(title = "昵称", example = "梦开始的地方")
    private String nickname;

    /**
     * 用户姓名
     */
    @Schema(title = "用户姓名", example = "张三")
    private String realName;

    /**
     * 用户头像（url）
     */
    @Schema(title = "用户头像（url）", example = "http://avatar.png")
    private String avatar;

    /**
     * 用户拥有的资源权限
     */
    @Schema(title = "用户拥有的资源权限", example = "[A,B,C]")
    private Set<String> authorities;

    /**
     * 用户拥有的角色编码
     */
    @Schema(title = "用户拥有的角色编码", example = "[codeOne,codeTwo,codeThree]")
    private Set<String> roles;

}
